package cn.edu.xust.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author ouguangji
 * @email sunny_ogj_mail@163.com
 * @date 2020-09-21 14:28:15
 */
@Data
@TableName("hotel")
public class HotelEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer hotelId;
    private String addr;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ctime;
    private String note;
    private String appid;
    private String appsec;
    private String hotelCname;
    private String hotelName;
    private String hotelAddress;
    private String hotelStar;
    private Integer hotelGroup;
    private String floor;
    private Double longitude;
    private Double latitude;
    private String citycode;
    private String provinceid;
    private String cityid;
    private String intro;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE, update = "NOW()")
    private Date updateTime;
}


